package cn.mesmile.clickhouse.service.impl;

import cn.mesmile.clickhouse.dao.BookMapper;
import cn.mesmile.clickhouse.dao.GeneralQueryParam;
import cn.mesmile.clickhouse.entity.Book;
import cn.mesmile.clickhouse.service.BookService;
import cn.mesmile.clickhouse.service.ClickHouseServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zb
 * @date 2021/7/4 23:47
 * @Description
 */
@AllArgsConstructor
@Service
public class BookServiceImpl extends ClickHouseServiceImpl<Book> implements  BookService {

    private final BookMapper bookMapper;


    @Override
    public List<Book> select() {
        return bookMapper.getBook();
    }

    @Override
    public int save(Book book) {
        return bookMapper.save(book);
    }

}
